package com.maila.calltaxi.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.maila.calltaxi.R;
import com.maila.calltaxi.utils.StartActivityUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/7/4.
 */

public class SettingActivity extends AppCompatActivity {


    @BindView(R.id.tv_clint_name)
    TextView tvClintName;
    @BindView(R.id.tv_phone_num)
    TextView tvPhoneNum;
    @BindView(R.id.tv_maidou_num)
    TextView tvMaidouNum;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.setting_activity);
        ButterKnife.bind(this);

    }
    private void startAmap() {
        Intent intent = new Intent(this, AmapActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
        startActivity(intent);
        overridePendingTransition(0, 0);
    }

    @OnClick({R.id.return_iv, R.id.rl_change_name, R.id.rl_change_phone_num, R.id.tv_chongzhi_pwd, R.id.rl_my_maidou, R.id.rl_yuyue, R.id.rl_travel})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.return_iv:
                finish();

                break;
            case R.id.rl_change_name:
                break;
            case R.id.rl_change_phone_num:
                StartActivityUtils.start(this,ResetPhoneActivity.class);
                break;
            case R.id.tv_chongzhi_pwd:
                StartActivityUtils.start(this,ForgetPwdActivity.class);
                break;
            case R.id.rl_my_maidou:
                StartActivityUtils.start(this,MymaidouActivity.class);
                break;
            case R.id.rl_yuyue:
                StartActivityUtils.start(this,PreOrderActivity.class);
                break;
            case R.id.rl_travel:
                StartActivityUtils.start(this,HistoricalTravelActivity.class);
                break;
        }
    }
}
